--[[ 编码: WMS-16-05 名称: 盘点单-查询面板-点查询按钮 作者:HAN 日期:2025-1-29 级别:固定 (说明本段代码在项目中不太会变化) 函数: Query 功能: 1)查询面板里点“查询”按钮 更改记录: V2.0 HAN 20250212 -- 改进了获取查询条件的方法,从 wms_count 中的标准函数获取 --]] wms_count = require( "wms_count" ) function Query( strLuaDEID ) local nRet, strRetInfo nRet, strCondition = wms_count.Get_CountPlan_QueryPanel_Condition( strLuaDEID, true ) if ( nRet == 1 ) then mobox.setInfo( strLuaDEID, strCondition ) return end if ( nRet > 1 ) then mobox.stopProgram( strLuaDEID, strCondition ) return end local action = { { action_type = "set_query_condition", value = { condition = strCondition, oredr = "" } } } nRet, strRetInfo = mobox.setAction( strLuaDEID, lua.table2str(action) ) if ( nRet ~= 0 ) then lua.Error( strLuaDEID, debug.getinfo(1), "setAction失败! "..strRetInfo..' action = '..strAction ) end end